package com.bella.springcloud.entities;/**
 * @program: cloud2022
 * @description: 返回数据
 * @packagename: com.bella.springboot.entities
 * @author: Bella白
 * @date: 2022-08-31 17:12
 **/

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author: bella白
 * @Title: CommonResult
 * @ProjectName: cloud2022
 * @Description:
 * @date: 2022/8/31 17:12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommonResult<T> {
    private Integer code;
    private String message;
    private T data;
    public CommonResult(Integer code,String message){
        this(code,message,null);
    }
}
